const path = require("path");
const express = require("express");
const app = express();
const port = 4877;

app.use(
  "/",
  express.static(path.join(__dirname, "dist"), {
    index: "index.html", // 确保默认访问 index.html
  })
);

// app.get("/", (req, res) => {
//   res.redirect("/sys/video_diary_medialib/");
// });

app.listen(port, () => {
  console.log(`服务运行在 http://localhost:${port}`);
});
